﻿using System.Windows;
using GIMS.Def.Arguments;
using System.Diagnostics.Contracts;

namespace GIMS.GUI.GeneralConfig
{
    public class ArgumentRepresenter
    {
        public ArgumentRepresenter(Argument argument, string name, string description)
        {
            Contract.Requires(null != argument);
            Name = name;
            Description = description;
            ArgumentControlElement = ArgumentControlFactory.CreateConfigControl(argument);
        }

        public string Name { get; protected set; }
        public string Description { get; protected set; }
        public UIElement ArgumentControlElement { get; private set; }
    }
}
